package org.example.commonapi.domain.onlineCode;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.util.List;

@Data
@Document(collection = "code_result_for_oj")
@AllArgsConstructor
@NoArgsConstructor
public class CodeResultForOJ {
    private String id;
    /**
     * 0:通过 1:未通过 2:编译错误
     */
    private Integer result;
    private String problemId;
    @Field("submit_time")
    private String submitTime;
    private String username;
    @Field("nike_name")
    private String nikeName;
    private String code;
    private String language;
    private String statue;
    private String time;
    private String memory;
    @Field("run_time")
    private String runTime;
    private String input;
    private String taOutput;
    private String saOutput;
    private List<Boolean> outCaseResults;
    private List<OutCaseGroupRoot> outCaseGroupRoots;
}

